package com.qf.fmall.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("用于返回分页信息")
public class PageInfoVo<T> {
    @ApiModelProperty(value = "返回当前页数", dataType = "int", example = "当前页码")
    private Integer pageCount;
    @ApiModelProperty(value = "返回数据的总条数", dataType = "int", example = "数据的总条数")
    private Integer count;
    @ApiModelProperty(value = "返回本次分页查询的的数据", dataType = "List<T>", example = "本页数据查询的集合")
    private List<T> list;
}
